package com.atguigu.tingshu.account.service;

import com.atguigu.tingshu.model.account.UserAccount;
import com.atguigu.tingshu.model.account.UserAccountDetail;
import com.atguigu.tingshu.vo.account.AccountLockResultVo;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface UserAccountService extends IService<UserAccount> {

    void saveUserAccount(Long userId);

    AccountLockResultVo checkLock(AccountLockVo accountLockVo);

    void reduceAccount(String orderNo);

    void unlock(String orderNo);

    Page<UserAccountDetail> findUserMoneyRecord(Integer page, Integer limit, String tradeType);
}
